from rest_framework import serializers
# from . import models
class user_serializers(serializers.Serializer):
    id = serializers.CharField(max_length=250)
    username = serializers.CharField(max_length=250)
    password = serializers.CharField(max_length=250)
    count = serializers.CharField(max_length=250)
    img = serializers.ImageField()
    # class Meta:
    #     model= models.User
    #     fields='__all__'

# from rest_framework.pagination import PageNumberPagination
#
#
# class MyPage(PageNumberPagination):  # 继承分页器
#
#     page_size = 1  # 每页最大数据
#
#     page_query_param = "p"  # 用来提供直接访问某页的数据
#
#     page_size_query_param = "size"  # 临时调整当前显示多少数据
#
#     max_page_size = 5  # 控制page_size_query_param参数能调整的最大条数